package com.damage.common.mapper;

import com.damage.common.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IPublicMapper {

    Supplier findSupplierById(Integer supplierId);

    List<SupplyGood> findSupplyGoodBySupplierId(Integer supplierId);

    SupplyGood findSupplyGoodById(Integer supplyGoodId);

    PurchasePlan findPurchasePlanById(Integer purchasePlanId);

    List<PurchasePlanDetail> findDetailByPurchasePlanId(Integer purchasePlanId);

    Order findOrderById(Integer orderId);

    List<OrderDetail> findDetailByOrderId(Integer orderId);

    PurchaseInvoice findPurchaseInvoiceById(Integer purchaseInvoiceId);

    List<Order> findOrderByState(Integer state);
}
